* (bug 3216) Don't show empty warning page when no warnings.
authorBrion Vibber <brion@users.mediawiki.org>
Sun, 21 Aug 2005 23:15:26 +0000 (23:15 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sun, 21 Aug 2005 23:15:26 +0000 (23:15 +0000)
RELEASE-NOTES
includes/SpecialUpload.php

index d3d1ab0..05aa2fd 100644 (file)
@@ -41,6 +41,8 @@ Misc work going on.....
 * Edit conflict on recreation of deleted page
 * (bug 3210) Fix Media: links with remote image URL path
 * (bug 1956) Hide bot uploads from Special:Newimages
+* (bug 3216) Don't show empty warning page when no warnings.
+
 
 === Caveats ===
 
index e8f371e..40ab946 100644 (file)
@@ -220,7 +220,7 @@ class UploadForm {
                 * Check for non-fatal conditions
                 */
                if ( ! $this->mIgnoreWarning ) {
-                       $warning = '<ul>';
+                       $warning = '';
                        if( $this->mUploadSaveName != ucfirst( $filtered ) ) {
                                $warning .=  '<li>'.wfMsgHtml( 'badfilename', htmlspecialchars( $this->mUploadSaveName ) ).'</li>';
                        }
@@ -254,7 +254,7 @@ class UploadForm {
                                 * Stash the file in a temporary location; the user can choose
                                 * to let it through and we'll complete the upload then.
                                 */
-                               return $this->uploadWarning($warning . "</ul>");
+                               return $this->uploadWarning( $warning );
                        }
                }